package com.tianhui.consignortwofei.mvp.contract;

import com.fgs.common.CommonPresenter;
import com.fgs.common.CommonResponse;
import com.fgs.common.CommonView;

import java.util.List;
import java.util.Map;

/**
 * @author fgs
 * @date 2020/3/29
 * @description
 **/
public interface GoodsDetailContract {
    interface View extends CommonView {
//        void showGoodsTopInfo(GoodsInfo info);

        void showGoodsDetailItemList(List list);

//        void showGoodsDetailInfo(GoodsInfo info);

        void showGrabTipDialog(Map<String, String> map);

        void showConfirmGrabTipDialog(CommonResponse message);

        void activityFinish();

        void showEmptyView();

        void showGrabSuccess();
    }

    abstract class Presenter extends CommonPresenter<View> {
        public abstract void requestGoodsDetail(Map<String, String> map, boolean isDialog);

        public abstract void requestGoodsShareDetail(Map<String, String> map, boolean isDialog);

//        public abstract void processGoodsGrab(GoodsInfo info);

        public abstract void requestGoodsGrab(Map<String, String> map, boolean isDialog);

        public abstract void requestOrderCancel(CommonResponse baseResponse, boolean isDialog);
    }
}
